package la.bbs558.entity;

import java.util.Date;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serializable;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.Data;
/**
 * 用户收藏表(UserOption)表实体类
 *
 * @author weihanmin
 * @since 2023-12-17 21:00:59
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class UserOption extends Model<UserOption> {
    
    /**
     * 主键id
     */
    private Long id;
    
    /**
     * userid
     */
    private Long userId;
    
    /**
     * 版面id
     */
    private Long boardId;
    
    /**
     * 帖子id
     */
    private Long postId;
    
    /**
     * 回复id
     */
    private Long replyId;
    
    /**
     * 1=点赞 2=收藏
     */
    private Integer type;
    
    /**
     * 创建时间
     */
    private Date createTime;
    

    //获取主键值
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    
}
